package com.niit.factory;

public class Test {

    public static void main(String[] args) {

        XiaoMiPhone xiaomi = (XiaoMiPhone)PhoneFactory.getPhone("xiaomi");
        HuaWeiPhone huawei = (HuaWeiPhone)PhoneFactory.getPhone("huawei");
    }
}
